package xin.nick.persistence.core.entity;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Nick
 * @date 2021/5/5
 * @description 核心配置类,数据源,MappedStatementMap 等..
 */
public class Configuration {

    /**
     * 数据源
     */
    private DataSource dataSource;

    /**
     * 映射配置类的映射
     */
    Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
